#include<stdio.h>
#include<stdlib.h>
int gv1;
int gv2=100;

int main()
{
printf("code addr:%p\n",main);
const char * str="hello world";
printf("read only string addr :%p\n",str);
printf("init global value addr :%p\n",&gv2);
printf("uninit global value addr :%p\n",&gv1);

char*men=(char*)malloc(32);
char*men1=(char*)malloc(32);
char*men2=(char*)malloc(32);


printf("heap addr :%p\n",men);
printf("heap addr :%p\n",men1);
printf("heap addr :%p\n",men2);

int tmp=0;
int b=0;
int c=0;
printf("statck addr:%p\n",&tmp);
printf("statck addr:%p\n",&b);
printf("statck addr:%p\n",&c);
return 0;
}
